﻿using System;
using System.Collections.Generic;
using System.Linq;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace Beauty
{
	public class CollectionSource_Services : UICollectionViewSource
	{

		List<cell_Services> listCellServices;
		static NSString ServicesId = new NSString("cellServices");
		public CollectionSource_Services (List<cell_Services> temp)
		{

			listCellServices = temp;
		}
		public override int NumberOfSections (UICollectionView collectionView)
		{
			return 1;
			throw new NotImplementedException ();
		}
		public override int GetItemsCount (UICollectionView collectionView, int section)
		{
			return cellServices.Count;
			throw new NotImplementedException ();
		}
		public override UICollectionViewCell GetCell (UICollectionView collectionView, NSIndexPath indexPath)
		{
			var cellService = (cell_Services)collectionView.DequeueReusableCell (ServicesId, indexPath);
			var serviceItem = listCellServices [indexPath.Row];
			cellService.Image = serviceItem.Image;
			return cellService;
			throw new NotImplementedException ();
		}

	}
}

